from application import db

class User(db.Model):
    __tablename__ = 'mi_user'
    id = db.Column(db.Integer, primary_key=True)
    nickname=db.Column(db.String(50), index=True, unique=False)
    mobile = db.Column(db.String(11), index=True, unique=False)
    password = db.Column(db.String(120), default=000000)

    def __repr__(self):
        return '<User %r>' % self.nickname
